package cn.lzy.demo;

/**
 * @Description  事件定义（方式二）
 * @Author lzy
 * @Date 2024/1/12 0:59
 * @Version
 **/
public class Book {
    private String name;

    private Double price;

    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", price=" + price +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }
}
